<extend name="_layout/main"/>
<block name="top">
    <include file="_layout/search_with_back"/>
    <!-- 侧边导航 -->
    <include file="_layout/menu"/>
</block>
<block name="content">
    <div class="warp clearfloat">
        <div class="lists clearfloat">
            <div class="top clearfloat">
                <ul>
                    <li><a href="{:U('Goods/index',['catid'=>$_GET['catid']])}">默认</a></li>
                    <li><a href="{:U('Goods/index',['order'=>'new','catid'=>$_GET['catid']])}">最新<i
                            class="iconfont icon-xiala"></i></a></li>
                    <li><a href="{:U('Goods/index',['order'=>'sale','catid'=>$_GET['catid']])}">销量<i
                            class="iconfont icon-xiala"></i></a></li>
                </ul>
            </div>
            <div class="bottom clearfloat">
                <volist name="goods" id="item">
                    <div class="lie clearfloat">
                        <a href="{:U('Goods/detail',['id'=>$item['id']])}">
                            <div class="tu clearfloat fl">
                                <span></span>
                                <img src="{$item.goods_thumb}"/>
                            </div>
                        </a>
                        <div class="right clearfloat fl">
                            <a href="{:U('Goods/detail',['id'=>$item['id']])}">
                                <p class="tit">{$item.goods_name|msubstr=20,'...'}</p>
                            </a>
                            <div class="xia clearfloat">
                                <a href="{:U('Goods/detail',['id'=>$item['id']])}">
                                    <p class="jifen fl over">
                                        <gt name="item.pay_balance" value="0">
                                            {$item.pay_balance}现金
                                        </gt>
                                        <if condition="$item['pay_balance'] gt 0 && $item['pay_integral'] gt 0">
                                            +
                                        </if>
                                        <gt name="item.pay_integral" value="0">
                                            {$item.pay_integral}积分
                                        </gt>
                                        <if condition="$item['pay_coupon'] gt 0 && $item['pay_integral'] gt 0">
                                            +
                                        </if>
                                        <gt name="item.pay_coupon" value="0">
                                            {$item.pay_coupon}商品券
                                        </gt>
                                    </p>
                                </a>
                                <!--<span class="fr db"><img src="__STATIC__/img/jia.png"/></span>-->
                            </div>
                        </div>
                    </div>
                </volist>
                <div class="show-page">
                    {$page}
                </div>
            </div>
        </div>
    </div>
    <include file="_layout/footer"/>
</block>
<block name="scripts">

</block>